package com.windfone.web.action;

import com.opensymphony.xwork2.ActionSupport;
import com.windfone.model.StaticAbout;
import com.windfone.service.CommonService;

public class AboutAction extends ActionSupport {

	/**	serialVersionUID */
	private static final long serialVersionUID = 1L;
	private CommonService commonService;
	private String type;
	private StaticAbout bean;
	public String getType() {
		return type;
	}

	public StaticAbout getBean() {
		return bean;
	}

	public void setBean(StaticAbout bean) {
		this.bean = bean;
	}

	public void setType(String type) {
		this.type = type;
	}

	public void setCommonService(CommonService commonService) {
		this.commonService = commonService;
	} 
 
	public String execute() throws Exception {
		bean = commonService.getStaticAboutByShortName(type);
		return SUCCESS;
	}
	 
	

}
